<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="admin.php?mod=payment" <!--{if($act=='index'):}-->class="sel"<!--{endif;}-->>已安装（{$tongji['install']}）<i></i></a>
		<a href="admin.php?mod=payment&act=no_install" <!--{if($act=='no_install'):}-->class="sel"<!--{endif;}-->>未安装（{$tongji['no_install']}）<i></i></a>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
		<tr>
			<th class="bgtt" width="50">ID号</th>
			<th class="bgtt" width="50">排序</th>
			<th class="bgtt" width="60"></th>
			<th class="bgtt left" width="200">支付方式</th>
			<th class="bgtt">支付描述</td>
			<th class="bgtt" width="90">开启状态</th>
			<th class="bgtt" width="100">操作</th>
		</tr>
		<!--{foreach($info_list as $v):}-->
		<!--{if($act=='no_install'):}-->
		<tr>
			<td>{$v['id']}</td>
			<td>-</td>
			<td><img src="{$pe['host']}include/plugin/payment/{$v['type']}/logo.png" style="height:30px" /></td>
			<td class="left">{$v['name']}</td>
			<td class="left">{$v['desc']}</td>
			<td>-</td>
			<td><a href="javascript:pe_confirm('安装', 'admin.php?mod=payment&act=install&type={$v['type']}&token={$pe_token}')" class="admin_btn">安装</a></td>
		</tr>
		<!--{else:}-->
		<tr>
			<td>{$v['payment_id']}</td>
			<td><input type="text" name="payment_order[{$v['payment_id']}]" value="{$v['payment_order']}" class="inputtext input30 center" /></td>
			<td><img src="{$pe['host']}include/plugin/payment/{$v['payment_type']}/logo.png" style="height:30px" /></td>
			<td class="left">{$v['payment_name']}</td>
			<td class="left">{$v['payment_desc']}</td>
			<td class="layui-form">
				<input type="checkbox" <!--{if($v['payment_state']):}-->checked<!--{endif;}--> lay-skin="switch" lay-text="开启|关闭" url="admin.php?mod=payment&act=state&id={$v['payment_id']}&token={$pe_token}" />
			</td>
			<td>
				<a href="admin.php?mod=payment&act=edit&id={$v['payment_id']}" class="admin_edit mar3">修改</a>
				<a href="javascript:pe_confirm('卸载', 'admin.php?mod=payment&act=uninstall&id={$v['payment_id']}&token={$pe_token}')" class="admin_del">卸载</a>
			</td>
		</tr>
		<!--{endif;}-->
		<!--{endforeach;}-->
		</table>
	</div>
	<div class="right_bottom">
		<span class="fl">
			<input type="button" onclick="pe_confirm('更新排序', 'admin.php?mod=payment&act=order&token={$pe_token}', true)" value="更新排序" />
		</span>
		<span class="fr fenye">{$db->page->html}</span>
		<div class="clear"></div>
	</div>
	</form>
</div>
<link rel="stylesheet" href="{$pe['host']}include/plugin/layui/css/layui.css">
<script src="{$pe['host']}include/plugin/layui/layui.js"></script>
<script type="text/javascript">
layui.use(['form'], function(){
	form = layui.form;
	form.on('switch', function(data){
		var url = $(this).attr("url") + "&value=" + (this.checked ? 1 : 0)
		pe_get(url);
	});
});
</script>
<!--{include(pe_tpl('footer.html'));}-->